package com.ketai.appinfo.service;
import com.ketai.appinfo.mapper.AppCategoryMapper;
import com.ketai.appinfo.pojo.AppCategory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
*@Author 刘玉琼
*@Time 2020-11-03
*
*/
@Service
@Transactional
public class AppCategoryService{

    @Resource
    private AppCategoryMapper appCategoryMapper;

    /**
     * 绑定一级分类
     * @return
     */
    public List<AppCategory> categoryLeverSelect() {
        return appCategoryMapper.categoryLever();
    }
    /**
     * 绑定二级分类
     * @return
     */
    public List<AppCategory> categoryLever2Select(Integer id) {
        return appCategoryMapper.categoryLever2(id);
    }
    /**
     * 绑定三级分类
     * @return
     */
    public List<AppCategory> categoryLever3Select(Integer id) {
        return appCategoryMapper.categoryLever3(id);
    }
}
